﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true"
    CodeBehind="DanhSachBanTin.aspx.cs" Inherits="GreenLife.Admin.DanhSachBanTin" %>
<%--
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form runat="server">
    <asp:Repeater ID="listNews" runat="server" OnItemCommand="cpRepeaterNews_ItemDataBound">
        <HeaderTemplate>
            <table>
                <thead style="color: Green;">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="ID"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Title"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="QuickTitle"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="Contents"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text="Image"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text="Status"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text="Update"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label8" runat="server" Text="Detele"></asp:Label>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("NewsID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbBriefContent" runat="server" Text='<%# Bind("QuickTitle") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label TextMode="MultiLine" Width="300px" Wrap="false" ID="lbContent" runat="server"
                            Text='<%# Bind("Contents") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Image ID="imgNews" Width="100px" Height="100px" runat="server" ImageUrl='<%# Bind("Images") %>' />
                    </td>
                    <td>
                        <asp:Label ID="lbDayModified" runat="server" Text='<%# Bind("NStatus") %>'></asp:Label>
                    </td>
                    <td>
                        <a href='ChinhSuaBanTin.aspx?id=<%# DataBinder.Eval(Container.DataItem ,"NewsID") %>'>
                            Update</a>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkDelete" CommandName="delete" OnClientClick='javascript:return confirm("Are you sure you want to delete?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "NewsID") %>' runat="server">Delete</asp:LinkButton>
                    </td>
                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    
        <asp:Literal ID="ltlPhanTrang" runat="server" />
   <%-- <cc1:CollectionPager ID="CollectionPager1" runat="server" BackNextDisplay="HyperLinks"
        BackNextLinkSeparator="" BackNextLocation="Left" BackText="" LabelText="" LastText=""
        NextText="" PageNumbersDisplay="Numbers" PageNumbersSeparator="&nbsp;" PagingMode="QueryString"
        ResultsFormat="Kết quả từ {0}-{1} (của {2}) bài viết" ResultsLocation="Bottom">
    </cc1:CollectionPager>--%>
    </form>
</asp:Content>
